﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navigation;
using Croupier_iteration_1.ViewModel;
using Croupier_iteration_1.Model;

namespace Croupier_iteration_1.View
{
    public partial class PopupNewJoueurView : ChildWindow 
    {
        protected PopupNewJoueurViewModel PopupNewJoueurViewModel
        {
            get { return (PopupNewJoueurViewModel)DataContext; }
            set
            {
                DataContext = value;
            }
        }

        private void radHomme_Checked(object sender, RoutedEventArgs e)
        {
            PopupNewJoueurViewModel.Genre = "Homme";
        }

        private void radFemme_Checked(object sender, RoutedEventArgs e)
        {
            PopupNewJoueurViewModel.Genre = "Femme";
        }

    }
}
